<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>{$seo.title}</title>
{include file="common/style"}
</head>
<body>
{include file="common/header"}
<div class="banner-wp">
  <div class="layui-container">
    <div class="layui-row layui-col-space15">
      <div class="layui-col-md8">
        <div class="layui-card">
          
            <div class="layui-carousel" id="test-carousel-img">
              <div carousel-item="">
                <div class="item">
                  <img src="https://www.wendasns.com/img/bg_1.jpg">
                  
                    <div class="carousel-caption">
                      <h1>WendaSNS php问答系统</h1>
                      <p>开源，高效，易于二次开发</p>
                      <p>极速安装，配置简单，功能强大，SEO优化，内容知识付费。</p>
                      <a class="layui-btn layui-btn-lg layui-btn-primary" style="margin-top: 20px;" href="https://www.wendasns.com/"><span class="green">立即下载</span></a> <a class="layui-btn layui-btn-lg layui-bg-blue layui-btn-normal" style="margin-top: 20px;" href="https://www.wendasns.com/"><span>功能介绍</span></a>
                    </div>
                    
                </div>
                <div class="item">
                  <img src="https://www.wendasns.com/img/bg_2.jpg">
                  <div class="carousel-caption">
                      <h1>开放源码、LayUi前端、安全稳定</h1>
                      <p>一款开放源码的PHP问答社区系统，基于Thinkphp 6.X版本开发而成，容易扩展，具有强大的负载能力和稳定性。</p>
                     <a class="layui-btn layui-btn-lg layui-bg-blue layui-btn-normal" style="margin-top: 20px;" href="https://www.wendasns.com/"><span>功能介绍</span></a>
                      
                    </div>
                </div>
                <div class="item">
                  <img src="https://www.wendasns.com/img/bg_3.jpg">
                  <div class="carousel-caption">
                      <h1>易整合、更好的SEO、多入口登录</h1>
                      <p>支持路由规则自定义，可以定制自己的专属URL显示规则。同时支持页面自定义。</p>
                      <p>支持QQ、Sina微博、微信、手机等方式登录系统。</p>
                     <a class="layui-btn layui-btn-lg layui-bg-blue layui-btn-normal" style="margin-top: 20px;" href="https://www.wendasns.com/"><span>详情介绍</span></a>
                    </div>
                </div>
              </div>
            
          </div>
        </div>
      </div>
      <div class="layui-col-md4">
        <div class="layui-card">
          <div class="layui-card-body" style="height: 187px;">
            <fieldset class="layui-elem-field layui-field-title">
		  <legend>网站公告</legend>
			</fieldset>
            
            <ul>
          {volist name=":load_publish()" id="item"}
            <li><a href="{:url('wendasns/publish/show',['id'=>$item.id])}" style="{if $item.color}color: {$item.color};{/if}">{$item.title}</a><span style="float: right;">{$item.create_time|date='Y-m-d'}</span></li>
          {/volist}
        	</ul>
          </div>
        </div>
        
        <div class="layui-card layui-hide-xs">
        <div class="layui-card-body">
         <a href="{:url('wendasns/article/post')}" class="layui-btn layui-bg-blue layui-btn-fluid">撰写文章发布</a>
          </div>
        <div class="layui-card-body">
          <a href="{:url('wendasns/question/post')}" class="layui-btn layui-bg-red layui-btn-fluid">立即提问发布</a>
          </div>
		</div>
        
      </div>
    </div>
  </div>
</div>
<div class="layui-container">
	<div class="layui-row layui-col-space15">
		<div class="layui-col-md12">{:load_advert('IndexCentre')}</div>
	</div>
</div>
<div class="layui-container">
  <div class="layui-row layui-col-space15">
  
    <div class="layui-col-md8">

      <div class="layui-card">
        
        <div class="layui-card-body">
          <fieldset class="layui-elem-field layui-field-title">
  			<legend>等待你回复</legend>
			</fieldset>
          
        
          <div class="question-list">
                {volist name="question" id="item"}
                
				<section class="question-list-item">
                  <div class="qa-rank">
                    {if $item.answer==0}
					<div class="answers">
						{$item.answer}<small>未回</small>
					</div>
                    {/if}
                     
                    
								        <div class="views layui-hide-xs">
								            {$item.visits} <small>浏览</small>
								        </div>
								    </div>
                  <div class="summary">
                <a href="{:url('wendasns/question/show',$item)}" class="lista">{$item.title}</a>{if $item.tags}<div class="tags">{volist name=":explode(',',$item.tags)" id="tags"} <a href="{:url('wendasns/topic/show',['tags'=>$tags])}" class="tag">{$tags}</a>{/volist}</div>{/if}
                 
                <div class="ask-userinfo" style="margin-bottom: 1px;">
                <a href="{:url('wendasns/home/index',['id'=>$item.user_id],false)}" class="portrait-xs" style="margin-right: 10px;">{:portrait($item.user_id)}{$item.users.username}</a>  <span style="font-size: 14px;color: #777;float: right;"><i class="layui-icon layui-icon-date"></i>  {:range_time($item.create_time)}</span>
              </div>
                    </div>
                  </section>
                {/volist}
       
          </div>
        </div>
      </div>
      
      {:load_advert('IndexLeftCentre')}
      
      <div class="layui-card">
        
        <div class="layui-card-list">
          <fieldset class="layui-elem-field layui-field-title">
  			<legend>最新文章</legend>
			</fieldset>
          <div class="question-list">
          {volist name="article" id="item"}
          
            <section class="article-list-item">
              <div class="thumb layui-hide-xs"><a href="{:url('wendasns/article/show',$item)}" target="_blank">{:cover($item)}</a></div>
              <div class="info">
                <div class="info-limit">
                  <h3><a href="{:url('wendasns/article/show',$item)}" class="lista">{$item.title}</a></h3>
                <p style="color: #777;">{:substr_format($item.summary, 80)}<p>
                </div>
                <div class="meta">
                      
                <div class="ask-userinfo" style="margin-bottom: 1px;">
                <a href="{:url('wendasns/home/index',['id'=>$item.user_id],false)}" class="portrait-xs" style="margin-right: 10px;">{:portrait($item.user_id)}{$item.users.username}</a> {volist name=":explode(',',$item.tags)" id="tags"}<a href="{:url('wendasns/topic/show',['tags'=>$tags])}" class="tag">{$tags}</a> {/volist}<span style="font-size: 14px;color: #777;float: right;"><i class="layui-icon layui-icon-date"></i>  {:range_time($item.create_time)}</span> 
              </div>
                  </div>
              </div>  
            </section>
          
          {/volist}
            </div>
        </div>
      </div>
      
    </div>
    <!---->
    <div class="layui-col-md4">

	<div class="layui-card">
      
      <div class="layui-card-header"><button href="{:url('wendasns/sign/go')->domain(true)}" class="layui-btn layui-btn-xs layui-btn-danger J_req" data-click="sign">{if !$issign}今日签到{else}今日已签到{/if}</button><i class="wds-mid"></i><a href="{:url('wendasns/sign/charts')}" class="wds-link J_dialog" target="_blank" title="签到活跃榜 - TOP 20">活跃榜<span class="wds-badge-dot"></span></a> {if $loginUser.isLogin}<span class="wds-signin-days">已连续签到<cite>{$loginUser.data.sign}</cite>天</span>{/if} </div>
      <div class="layui-card-body">
          <ul>
            {volist name="sign" id="item"}
            <li class="header-img">
            <a href="{:url('wendasns/home/index',['id'=>$item.user_id],false)}">
              <span class="header-process">
                <svg class="rc-progress-circle" viewBox="0 0 100 100">
                  <defs><linearGradient id="rc-progress-gradient-0" x1="100%" y1="0%" x2="0%" y2="0%"><stop offset="0%" stop-color="#33CC75"></stop><stop offset="100%" stop-color="#29CFB3"></stop></linearGradient></defs>
                  <path class="rc-progress-circle-trail" d="M 50,50 m 48.5,0
              a 48.5,48.5 0 1 1 -97,0
              a 48.5,48.5 0 1 1 97,0" stroke="#e8ecee" stroke-linecap="round" stroke-width="3" fill-opacity="0" style="stroke: rgb(232, 236, 238); stroke-dasharray: 304.734px, 304.734px; stroke-dashoffset: 0px; transition: stroke-dashoffset 0.3s ease 0s, stroke-dasharray 0.3s ease 0s, stroke 0.3s ease 0s, stroke-width 0.06s ease 0.3s;"></path>
              <path class="rc-progress-circle-path" d="M 50,50 m 48.5,0
              a 48.5,48.5 0 1 1 -97,0
              a 48.5,48.5 0 1 1 97,0" stroke="url(#rc-progress-gradient-0)" stroke-linecap="round" stroke-width="3" fill-opacity="0" style="stroke-dasharray: 139.865px, 304.734px; stroke-dashoffset: 0px; transition: stroke-dashoffset 0s ease 0s, stroke-dasharray 0s ease 0s, stroke ease 0s, stroke-width ease 0.3s;"></path>
            </svg>
          </span>
            <div class="portrait-de">{:portrait($item.user_id)}</div>
          </a>
          </li>
          {/volist}
          </ul>
  
      </div>
    </div>

      {include file="common/right"}


    <div class="layui-card">
        <div class="layui-card-body">
          <fieldset class="layui-elem-field layui-field-title">
  			<legend>友情链接</legend>
		</fieldset>
          {volist name=":load_links()" id="item"}
            <a href="{$item.url}" target="_blank" title="{$item.name}" style="margin-right: 10px;{if $item.color}color: {$item.color};{/if}">{$item.name}</a>
          {/volist}
        </div>
    </div>

    </div>
  </div>

</div>

{include file="common/footer"}
<script>
;!function(){
  var carousel = layui.carousel;
  
    //图片轮播
    carousel.render({
      elem: '#test-carousel-img'
      ,width: '100%'
      ,height: '338px'
      ,interval: 5000
    });
  
}();
</script>

</body>
</html>